// pages/publishSuceess/publishSuccess.js
Page({

    /**
     * 页面的初始数据
     */
    data: {
        
        goodsId:''
    },

    /**
     * 生命周期函数--监听页面加载
     */
    onLoad: function (options) {
        this.setData({
            goodsId:options.goodsId
        })
        // const id = JSON.parse(options.id)
        // console.log(id)
       
    },
    toPublishDetail(){
        wx.navigateTo({
            url:'/pages/publishDetail/publishDetail?goodsId='+this.data.goodsId,
        });
    },
    continuePublish(){
        wx.switchTab({
            url:'/pages/prePublish/prePublish',
        });
    },
    toMyPublish(){
        wx.navigateTo({
            url:'/pages/myPublish/myPublish',
        });
    }
   
})